package com.jackstraw.jack_base.rules.entity.enums;

public enum ResultEnum {
    SUCCESS("001", "接口调用成功"),
    VALIDATE_FAILED("002", "参数校验失败"),
    COMMON_FAILED("003", "接口调用失败"),
    FORBIDDEN("004", "没有权限访问资源"),

    NO_FIND_RULES("005", "没有找到对应规则"),

    SCENE_DATA_NO_FIND_BY_DATABASE("006", "没有找到场景数据"),

    SCENE_DATA_LOSE_EFFICACY("007", "场景数据失效"),

    RULE_GROUP_DATA_LOSE_EFFICACY("008", "规则组数据失效"),

    RULE_GROUP_DATA_NO_FIND_BY_DATABASE("009", "没有找到规则组数据"),

    RULE_ERROR("010", "规则文件编译错误"),

    RULE_DATA_LOSE_EFFICACY("011", "规则数据失效"),

    RULE_DATA_NO_FIND_BY_DATABASE("012", "没有找到规则数据"),

    RULE_GROUP_NO_FIND_RULES_RELATION("013", "没有找到规则组对应的规则关系"),

    RULE_GROUP_NO_FIND_RULES("014", "没有找到规则组对应的规则"),

    SCENE_NO_FIND_RULES_GROUP_RELATION("015", "没有找到场景对应的规则组关系"),

    SCENE_NO_FIND_RULES_GROUP("016", "没有找到场景对应的规则组"),

    SYSTEM_ERROR("017", "系统异常，请联系管理员"),


    ;


    /**
     * 接口返回编码
     */
    private String code;

    /**
     * 接口返回信息
     */
    private String message;

    ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
